package ketang.november;

public class Test {
    public static void main(String[] args) {
        /**
         *   Person p=new Person();
         Student s=new Student();
         Teacher t=new Teacher();
         System.out.println(p instanceof Person);
         System.out.println(s instanceof Student);
         System.out.println(t instanceof Teacher);
         System.out.println(s instanceof Person);
         System.out.println(t instanceof Person);
         System.out.println(p instanceof Student);
         */

        Student s=new Student();
        Teacher t=new Teacher();
        if(t instanceof Person)
        {
            // s=(Student)t;
        }


    }
}
